<?php
namespace app\common\validate;

use think\Validate;

class GoodsCategory extends Validate
{
    protected $rule = [
        'catename' => 'require',
    ];

    protected $message = [
        'catename' => '请输入分类名称',
    ];

    protected $scene = [
        'add'    => ['catename'],
        'edit'   => ['catename'],
        'sort'   => [''],
        'status' => [''],
        'describe' => [''],
        'catename' => ['catename'],
    ];
}